/**
 * @author guysagy
 */

package utilities;

import javax.servlet.http.HttpSession;

public class SafeSessionAccess
{
    public static synchronized void setAttribute(HttpSession session, String attributeName, Object attributeValue)
    {
        session.setAttribute(attributeName, attributeValue);
    }

    public static synchronized Object getAttribute(HttpSession session, String attributeName)
    {
        return session.getAttribute(attributeName);
    }

    public static synchronized void removeAttribute(HttpSession session, String attributeName)
    {
        session.removeAttribute(attributeName);
    }
}
